import Queue from "./Queue";

class GameDataMgr {
    WebUrlType = {
        USER_TYPE: "USER_TYPE",
        PRIVACY_TYPE: "PRIVACY_TYPE"
    };
    static EffectEnum = {};

    private cashNode;
    private reportErrorQueue;

    constructor() {
        this.cashNode = null;
        this.reportErrorQueue = new Queue();
    }

    static _instance;
    static _getInstance(): GameDataMgr {
        if (!GameDataMgr._instance) {
            GameDataMgr._instance = new GameDataMgr();
        }
        return GameDataMgr._instance;
    }

    init() { }

    setCashNode(e) {
        this.cashNode = e;
    }

    getCashNode() {
        return this.cashNode;
    }
}

GameDataMgr.EffectEnum = {
    money: 0,
    fund: 1
};


const a = GameDataMgr._getInstance();

export default a;
